/**
 * 
 */
package x.java.tea;

import java.util.Iterator;

/**
 * @author qiangli
 *
 */
public class ObjectTreeNode implements TreeNode {
	protected Object object;
	
	public ObjectTreeNode() {
	}

	public ObjectTreeNode(Object object) {
		this.object = object;
	}

	@Override
	public Iterator<TreeNode> children() {
		return null;
	}

	@Override
	public Object getObject() {
		return object;
	}

	@Override
	public TreeNode getParent() {
		return null;
	}

	@Override
	public boolean isLeaf() {
		return true;
	}
}
